<template>
  <div>
    <keep-alive>
      <!-- 路由出口 -->
      <router-view v-if="$route.meta.needKeep"></router-view>
    </keep-alive>

    <!-- 这里的router-view没有被keep-alive包裹，就意味着不需要被缓存起来 -->
    <router-view v-if="!$route.meta.needKeep"></router-view>
  </div>
</template>

<script>
export default {};
</script>

<style>
</style>